<nav class="navbar navbar-default" role="navigation">
    <div class="container-fluid">
      <!-- Brand and toggle get grouped for better mobile display -->
      <div class="navbar-header">
        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
          <span class="sr-only">Toggle navigation</span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
      </button>
      
  </div>

  <!-- Collect the nav links, forms, and other content for toggling -->
  <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
    <ul class="nav navbar-nav">
      <li>
        <a class="dropdown-toggle" href="/expo7/redacaos"><i class="fa fa-file-text-o"></i> Escreva seu texto </a>
      </li>
      <!--<li class="dropdown">
        <a class="dropdown-toggle" data-toggle="dropdown" href="/expo7/votos"><i class="fa fa-thumbs-up"></i> Mural de textos <b class="caret"></b></a>
        <ul class="dropdown-menu">
          <li>
            <?php echo $this->Html->link(__('<i class="fa fa-file-o"></i> Modalidade 1'), array('controller' => 'votos', 'action' => 'modalidade_1'), array('escape' => false)); ?>
          </li>
          <li>
            <?php echo $this->Html->link(__('<i class="fa fa-file-o"></i> Modalidade 2'), array('controller' => 'votos', 'action' => 'modalidade_2'), array('escape' => false)); ?>
          </li>
        </ul> 
      </li>-->
    </ul>
<ul class="nav navbar-nav navbar-right">
   <li class="dropdown"><?php
   if ($this->Session->check('Auth.User')){
     $user1 = $this->Session->read('Auth'); 
     echo $this->Html->link('Sair', array('controller' => 'Users', 'action' => 'logout'));
 } else {
     echo $this->Html->link('Entrar', array('controller' => 'Users', 'action' => 'login'));
 }
 ?></li>
</ul>
<div>          
</div><!-- /.container-fluid -->
</nav>
<div class="login-logout">
   <?php  if ($this->Session->check('Auth.User')){
      $user1 = $this->Session->read('Auth'); 
      echo "Olá, " . $user1['User']['nome']; 
  } else {
  }   
  ?>
</div>
<h2>Editar Publicação</h2>

<?php


echo $this->Form->create('Redacao');
echo $this->Form->input('nome', array('value' => $this->Session->read('Auth.User.nome'), 'type' => 'hidden'));
echo $this->Form->input('tipo_texto', array('label' => 'Modalidade', 'type' => 'hidden'));
echo $this->Form->input('nome_redacao', array('label' => 'Título do Texto', 'type' => 'text'));
echo $this->Form->input('redacao', array('label' => 'Publicação', 'rows' => '8'));
echo $this->Form->input('data', array('value' => date('Y/m/d H:i:s'), 'type' => 'hidden'));
echo $this->Form->input('user_id', array('type' => 'hidden'));
echo $this->Form->input('grau_redacao', array('type' => 'hidden'));
echo $this->Form->input('sede_redacao', array('type' => 'hidden'));
echo $this->Form->end('Atualizar Publicação');
?>